﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditPageKey.aspx.cs" Inherits="Admin_EditPageKey" %>

<%@ Register Src="adminfoot.ascx" TagName="adminfoot" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
        <link rel="stylesheet" href="imgs/admin.css" type="text/css" media="all" />
        <script type="text/javascript" src="../DotNet_net/js/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="../DotNet_net/js/jquery.form.js"></script>
</head>
<body onload="$('#loading').hide()">
    <form name="addform" id="addformAjax"  method="post">  
    <div id="cpcontainer" class="container">
<div id="loading" style="display:block">   
    <div class="loading-indicator">   
        页面正在加载中...   
    </div>   
</div> 
<!--当前导航-->
<%--<script type="text/JavaScript">if(parent.document.getElementById('admincpnav')) parent.document.getElementById('admincpnav').innerHTML='后台首页&amp;nbsp;&amp;raquo;&amp;nbsp;生成&amp;nbsp;&amp;raquo;&amp;nbsp;生成选项';</script>--%>
<ul id="makeHtmlTab">
<li class="hover"><a href="javascript:void(0)" onclick="viewComMakeOps();">查看页面优化</a></li>
</ul>
<table class="tb">
<tr>
<td>
<table width="100%" border="0">    

    <tr>
        <th width="25%" align="right" style="height: 32px">
            &nbsp;<span style="color:Red">*<span
            style="color: #555555">标题(title)</span></span></th>
        <td width="75%" style="height: 32px">
            <input title="优化标题" type="text" class="inputField followedObj" maxlength="200" size="40" id="Title" name="Title" runat="server"/><span style="color:#2366A8;font-size:5">&nbsp;&nbsp;最大长度为200</span>
        </td>
    </tr>
    <tr>
        <th valign="top" align="right">
        &nbsp;<span style="color: #ff0000">*</span>关键字(key)：<br /><span style="color:Red;font-size:8">(此项重要)</span></th>
        <td><span style="color:Red;font-size:12px">google关键字分析工具：</span><span style="color:#2366A8;font-size:10px"><a href="https://adwords.google.com/select/KeywordToolExternal?defaultView=2">https://adwords.google.com/select/KeywordToolExternal?defaultView=2</a></span>
        <br />
        <span style="color:Red;font-size:10px">1、</span><span style="color:#2366A8;font-size:12px"> 把当前发布产品的关键字输入到Google关键字分析工具，Google会给你更多相关关键字</span><br />
        <span style="color:Red;font-size:10px">2、</span><span style="color:#2366A8;font-size:12px">将Google分析得出的关键字添加到以下的表格，每个表格只能添加一个关键字 </span><br />
        <span style="color:Red;font-size:10px">3、</span><span style="color:#2366A8;font-size:12px">发布每个产品时尽量添加不相同的相关关键字</span><br /> 
        <br />
            <input type="text" class="inputField followedObj" maxlength="30" size="20" id="key1" name="key2" runat="server"/>
            <input type="text" class="inputField followedObj" maxlength="30" size="20" id="key2" name="key2" runat="server"/>
            <input type="text" class="inputField followedObj" maxlength="30" size="20" id="key3" name="Duty" runat="server"/>
            <br />
            <input type="text" class="inputField followedObj" maxlength="30" size="20" id="key4" name="Duty" runat="server"/>
            <input type="text" class="inputField followedObj" maxlength="30" size="20" id="key5" name="Duty" runat="server"/>
            <input type="text" class="inputField followedObj" maxlength="30" size="20" id="key6" name="Duty" runat="server"/><br />
            <span style="color:#2366A8;font-size:12px">- 提供当前优化相关的关键字,方便目标客户搜索。</span><br/>
            <span style="color:#2366A8;font-size:12px">- 每个文本框填写一个关键词. 每个关键词的最大长度为 30个汉字.</span><br/>
            <span style="color:#2366A8;font-size:12px">- 每个文本框只允许输入一个关键字,不要重复输入相同的关键字,重复相同的关键字反而不利于客户找到您.</span><br/>


        </td>
    </tr>
    <tr>
        <th align="center" valign="top">&nbsp;
        <span style="color: #ff0000">*</span>描&nbsp;述(<span class="attribute-value">description</span>)：</th>
        <td>
            &nbsp;
            
            <textarea id="Description" name="Description" cols="90" style="height: 150px" runat="server"></textarea>            
            <%--<textarea title="描述" id="Description" name="Description" style="width: 490px; height: 69px"></textarea>--%>
            <br />
            <span style="color:#2366A8;font-size:12px">
            &nbsp;&nbsp;- 请详细输入优化描述信息.<br />
            &nbsp;&nbsp;- 该优化描述信息不得超过 500 个汉字。<br />
            &nbsp;&nbsp;- 请不要输入网址、邮件地址等与优化无关的信息。</span>
            </td>
    </tr>
        <tr>
            <th align="center" style="height: 23px" valign="top">
            &nbsp; 头部优化：</th>
            <td style="height: 23px">
            <input type="text" title="头部优化" class="inputField followedObj" maxlength="500" size="40" id="pageTop" name="pageTop" runat="server"/></td>
        </tr>
    <tr>
        <th align="right" style="height: 40px">
            &nbsp; 底部优化：</th>
        <td style="height: 40px">
            <input type="text" title="底部优化" class="inputField followedObj" maxlength="500" size="40" id="Bottom" name="Bottom" runat="server"/>
            <span style="color:#2366A8;font-size:5">&nbsp;&nbsp;</span>
        </td>
    </tr>
     <tr>
        <th valign="top" align="right" style="height: 31px">&nbsp; 页面名称:</th>
        <td style="height: 31px">
            <input title="页面名称" type="text" class="inputField followedObj" maxlength="500" size="40" id="pageName" name="pageName" runat="server"/><span style="color:#2366A8;font-size:5">&nbsp;&nbsp;优化页面</span>
        </td>
    </tr>
        <tr>
            <th align="right" style="height: 31px" valign="top">
                &nbsp; 所属页面:</th>
            <td style="height: 31px">
            <input title="所属页面" type="text" class="inputField followedObj" maxlength="50" size="40" id="fromPage" name="fromPage" runat="server" onserverchange="fromPage_ServerChange"/>&nbsp;
                <span style="color: #2366a8">页面名</span></td>
        </tr>
    
    <tr>
        <th valign="top" align="right"></th>
        <td>
            <input type="button" value="提交页面优化" class="btn" name="Submit" id="tijiao"/>
            <input type="button" class="btn" value="返回" onclick="javascript:location.href='AdminPageSeo.aspx'">
        </td>
    </tr>
</table>
 
        <input id="Hiddenid" runat="server" type="hidden" name="Hiddenid"/></td>                                 
  </tr>  
    
</table>
</div>
        <uc1:adminfoot ID="Adminfoot1" runat="server" />

</form>
<script type="text/javascript">
$(document).ready(function(){
    var options = { 
        beforeSubmit:  showRequest,  // pre-submit callback 
        success:       showResponse,  // post-submit callback 
        // other available options: 
         url:       "EditPageKey.aspx?state=add",         // override for form's 'action' attribute 
       // type:        'post'        // 'get' or 'post', override for form's 'method' attribute 
        //dataType:  null        // 'xml', 'script', or 'json' (expected server response type) 
        clearForm: false,        // clear all form fields after successful submit 
        resetForm: false        // reset the form after successful submit 
 
        // $.ajax options can be used here too, for example: 
        //timeout:   3000 
    }; 
    $('#tijiao').click(function(){
            $("#loading").show();            
            $('#addformAjax').ajaxSubmit(options);
            return false;
    });
})
function showResponse(msg){ 
if(msg=="1")
        {
            alert("成功!!!");
            $("#loading").hide();
            location.href="AdminPageSeo.aspx"
        }
        else
        {
            alert(msg);
            $("#loading").hide();
        }
} 
function showRequest(formData, jqForm, options) 
{ 
    return true; 
} 

</script>

</body>
</html>
